﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/SAFS.Master" CodeBehind="ConsultarEntrada.aspx.vb" Inherits="Template_SAFS_VB.ConsultarEntrada" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

		<link rel="stylesheet" href="css/colorbox.css" />
        <link href="css/modern.css" rel="stylesheet"/>
		<link href="css/modern-responsive.css" rel="stylesheet"/>
		<link href="css/site.css" rel="stylesheet" type="text/css"/>
        <link href="css/Blogs.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" href="css/Estilo.css" type="text/css" />
        <link rel="stylesheet" type="text/css" href="css/demo.css" />

        <!-- jQuery files -->
	<script type="text/javascript" src="jquery/jquery.js"></script>
	<script type="text/javascript" src="jquery/jRating.jquery.js"></script>
	<script type='text/javascript' src='js/jquery.simplemodal.js'></script>
	<script type='text/javascript' src='js/osx.js'></script>
	<link rel="stylesheet" type="text/css" href="css/demo.css" />
	<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
	<script type="text/javascript" src="js/script.js"></script>
	<link href="css/modern.css" rel="stylesheet"/>
    <link href="css/modern-responsive.css" rel="stylesheet"/>
    <link href="css/site.css" rel="stylesheet" type="text/css"/>

   <script language="javascript">



            function habilitarEscrituraEntrada() {
                $("#idEntrada").slideToggle();
            }
  </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div class="page-header-content">
    <div><h1><img src="images/back_button.png"  alt="" class="back_button" title="Atras" onclick="history.back()" />Consulta de Entrada</h1><br /><br /></div>
     </div> 

     <div class="UsuarioContent">
        <img src="images/user_default.jpg" class="fotoUsuario"/>
         <div class="infoUsuarioBlog">
             <% 
                 Dim blog As Dictionary(Of String, Object) = datosBlog()
                 Response.Write(CType(blog("nombreUsuario"), String) & "<br>" & CType(blog("rol"), String) & "<br> Entradas Realizadas: " & CType(blog("cantEntradas"), String) & "<br>")
                 Response.Write("<font color='red'>" & validarBlog(blog) & "</font>")
                 
                 %>
         </div> 
     </div>
    <div class="contenerdor"> <!-- container -->
		  <%
		      Response.Write(get_htmlEntrada())
            %>
            <br />
        <%Response.Write(habilitarBotonEscrituraEntrada())%>
	</div>
<% 
    
    Response.Write("<br><br>")%>
     <div class="escribirEntrada" id="idEntrada"  Style = "display:none">
           <h3>T&iacute;tulo:</h3>
            <asp:TextBox ID="txtTitulo" runat="server" Width="500px" MaxLength="200"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
               ErrorMessage="*" Font-Bold="True" Font-Size="Medium" ForeColor="Red" 
               ValidationGroup="modEntrada" ControlToValidate="txtTitulo"></asp:RequiredFieldValidator>
            <h3>Entrada:</h3>
            <asp:TextBox ID="txtEntrada" runat="server" Height="400px" Width="500px" 
                TextMode="MultiLine" MaxLength="3000"></asp:TextBox>
           <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
               ErrorMessage="*" Font-Bold="True" Font-Size="Medium" ForeColor="Red" 
               ValidationGroup="modEntrada" ControlToValidate="txtEntrada"></asp:RequiredFieldValidator>
           <br />
            <asp:Button ID="btnRegistrarEntrada" runat="server" Text="Guardar" 
               ValidationGroup="modEntrada" />
        </div>


    <asp:TextBox ID="txtComentario" runat="server" EnableViewState="False" 
        Height="150px" TextMode="MultiLine" Width="600px" 
        ValidationGroup="comentar" MaxLength="250"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
        ErrorMessage="*" Font-Bold="True" Font-Size="Medium" ForeColor="Red" 
        ValidationGroup="comentar" ControlToValidate="txtComentario"></asp:RequiredFieldValidator>
    <asp:Button ID="btnCrearEntrada" runat="server" Text="Comentar" 
        ValidationGroup="comentar" />
  <%  Response.Write("<br><br>")
    Response.Write(get_htmlComentarios())    
%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="script" runat="server">



</asp:Content>
